package org.changchen.fgt.service;

import java.util.List;

import org.changchen.fgt.dto.VideoDetail;
import org.changchen.fgt.dto.VideoInfo;

/**   
* @ClassName:  SourceParseService   
* @Description:数据解析服务   
* @author:     ChangChen 
* @date:       2024-01-18 16:54
* @Copyright:  2024 ChangChen. All rights reserved. 
*/
public interface SourceParseService {

	/**   
	 * @Title:      getVideoListFromXml   
	 * @Description:列表xml   
	 * @param:      @param url
	 * @param:      @param word
	 * @param:      @return      
	 * @return:     List<VideoInfo>      
	 * @throws   
	 */
	List<VideoInfo> getVideoListFromXml(String url, String word);

	/**   
	 * @Title:      getVideoDetailFromXml   
	 * @Description:详情xml   
	 * @param:      @param code
	 * @param:      @param vodId
	 * @param:      @return      
	 * @return:     VideoDetail      
	 * @throws   
	 */
	VideoDetail getVideoDetailFromXml(String code, Integer vodId);

	/**   
	 * @Title:      getVideoListFromJson   
	 * @Description:列表json   
	 * @param:      @param url
	 * @param:      @param word
	 * @param:      @return      
	 * @return:     List<VideoInfo>      
	 * @throws   
	 */
	List<VideoInfo> getVideoListFromJson(String url, String word);

	/**   
	 * @Title:      getVideoDetailFromJson   
	 * @Description:详情json   
	 * @param:      @param code
	 * @param:      @param vodId
	 * @param:      @return      
	 * @return:     VideoDetail      
	 * @throws   
	 */
	VideoDetail getVideoDetailFromJson(String code, Integer vodId);

}
